<script>
	export default {
		onLaunch: function() {
			if(!uni.getStorageSync('token')) {
				uni.reLaunch({
					url: '/pages/login'
				});
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import 'base.scss';
</style>
